package com.bawei.park2211a.adapter

import com.bawei.base.bean.DepartmentEntity
import com.bawei.park2211a.R
import com.bawei.park2211a.person.DepartmentPerson
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class DepartmentAdapter:BaseQuickAdapter<DepartmentPerson,BaseViewHolder>(R.layout.item_department) {
    override fun convert(helper: BaseViewHolder, item: DepartmentPerson) {
        helper.setText(R.id.department_name,item.departmentName)
        helper.setText(R.id.department_number,"${item.personNumber} 人")
    }
}